package demo;

public class Test {
    public static void main(String[] args)
            throws CloneNotSupportedException{
        Dog dog1 = new Dog("xiaohei",6);
        Dog dog2 = (Dog)dog1.clone();

    }
}
